<template>
	<view class="contact">
		<image src="https://0.rc.xiniu.com/g4/M00/6C/84/CgAG0mNofxWAS-kBAAU8wnnv-kY794.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话:<text>0755-82900900(点击拔打)</text></view>
			<view>联系地址:<text>深圳市罗湖区梅园路188号中国燃气大厦</text></view>
		</view>
		<map class="map" :latitude="latitude" :longitude="longitude" :markers="covers" :sacle="scale"></map>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				scale:15,
				latitude:22.568581,
				longitude:114.112642,
				covers: [{
					latitude: 22.568581,
					longitude: 114.112642,
					iconPath: 'https://portal.chinagasholdings.com/o/cgp-asset-frontend-theme/images/cg_logo.png'
				}]
			}
		},
		methods:{
			phone(){
				uni.makePhoneCall({
					phoneNumber:"0755-82900900"
				})
			}
		}
	}
</script>

<style>
	.contact image{
		width:100%;
		height:240rpx;
	}
	.info{
		padding:10rpx 20rpx;
	}
	.info view{
		line-height:80rpx;
		border-bottom:1px solid #ededed;
		padding:20rpx 0;
	}
	.info text{
		margin:0 0 0 20rpx;
	}
    .map{
		width:750rpx;
		height:750rpx;
	}
</style>